package com.hyh.sso.po;

import com.hyh.sso.LoginStatus;
import com.hyh.sso.LoginTypes;

/**
 * 登录结果对象
 * @Author: heyuhua
 * @Date: 2021/1/8 16:58
 */
public class LoginResult {
    /**
     * 登录用户对象
     */
    private LoginUser loginUser;
    /**
     * 登录用户令牌
     */
    private UserToken userToken;

    /**
     * 登录状态
     */
    private LoginStatus loginStatus;

    /**
     * 登录类型
     */
    private LoginTypes loginTypes;

    public LoginResult(){}

    public LoginResult(LoginStatus loginStatus) {
        this.loginStatus = loginStatus;
    }

    public LoginUser getLoginUser() {
        return loginUser;
    }

    public void setLoginUser(LoginUser loginUser) {
        this.loginUser = loginUser;
    }

    public UserToken getUserToken() {
        return userToken;
    }

    public void setUserToken(UserToken userToken) {
        this.userToken = userToken;
    }

    public LoginStatus getLoginStatus() {
        return loginStatus;
    }

    public void setLoginStatus(LoginStatus loginStatus) {
        this.loginStatus = loginStatus;
    }

    public LoginTypes getLoginTypes() {
        return loginTypes;
    }

    public void setLoginTypes(LoginTypes loginTypes) {
        this.loginTypes = loginTypes;
    }

    @Override
    public String toString() {
        return "LoginResult{" +
                "loginUser=" + loginUser +
                ", userToken=" + userToken +
                ", loginStatus=" + loginStatus +
                ", loginTypes=" + loginTypes +
                '}';
    }
}
